var level;

function Level(paramLevel) {
	//Properties

	$.get('/levels/1.xml', {}, function(xml) {
		level = xml;
	});

	//Methods
	this.draw = function() {
		ctx.save();

		ctx.strokeStyle = 'rgb(255,255,255)';

		$('assets', level).each(function() {
			ctx.beginPath();

			$(this)
				.find('asset')
				.each(function() {
					$(this)
						.find('points point')
						.each(function() {
							ctx.lineTo($(this).attr('x'), $(this).attr('y'));
						});
				});

			ctx.stroke();
			ctx.closePath();
		});

		ctx.restore();
	};
}
